package com.webservice.xmloper.activeState;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("activeState")
public class ActiveStiveXml {
	private String idcId;
	private Integer houseAmount;  //机房总数
	private Integer errHouseAmount;  //异常机房总数
	@XStreamImplicit
	private List<ErrHouse> errHouses = new ArrayList<ErrHouse>();  //异常机房ID
	private  Timestamp timeStamp;
	
	public void addErroHouse(ErrHouse errHouseId){
		errHouses.add(errHouseId);
	}
	
	
	public String getIdcId() {
		return idcId;
	}
	public void setIdcId(String idcId) {
		this.idcId = idcId;
	}
	public Integer getHouseAmount() {
		return houseAmount;
	}
	public void setHouseAmount(Integer houseAmount) {
		this.houseAmount = houseAmount;
	}
	public Integer getErrHouseAmount() {
		return errHouseAmount;
	}
	public void setErrHouseAmount(Integer errHouseAmount) {
		this.errHouseAmount = errHouseAmount;
	}
	public List<ErrHouse> getErrHouses() {
		return errHouses;
	}
	public void setErrHouses(List<ErrHouse> errHouses) {
		this.errHouses = errHouses;
	}
	public Timestamp getTimeStamp() {
		return timeStamp;
	}
	public void setTimeStamp(Timestamp timeStamp) {
		this.timeStamp = timeStamp;
	}
}
